package com.ruoyi.project.tool.upload.service;

import com.ruoyi.framework.web.domain.AjaxResult;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;

/***
 * 上传图片
 */
public interface UploadService {

    /**
     * 单张上传
     * @param picFile
     * @param type
     * @return
     */
    public String uploadImage(MultipartFile picFile, String type);

    /**
     * 批量上传
     * @param picFile
     * @param type
     * @return
     */
    public String uploadImages(MultipartFile[] picFile, String type);

    /***
     * 删除图片
     * @param filePath
     * @return
     */
    public AjaxResult delImage(@RequestParam("filePath") String filePath);
}
